<template>
	<view>
		<!-- 没有登录时显示按钮 -->
		<view v-if="token==''">
			<mylog></mylog>
		</view>

		<!-- 登录后显示用户信息 -->
		<view v-else>
			<myinfo></myinfo>
		</view>
	</view>
</template>

<script>
	import mylog from "@/components/my-login/my-login.vue"
	import myinfo from "@/components/my-info/my-info.vue"
	import {
		mapGetters,
		mapState,
		mapMutations
	} from "vuex"
	export default {
		// 注册组件
		components: {
			mylog,
			myinfo
		},
		data() {
			return {
				// H5   cookie
				// 微信开发者工具   token
				// 验证是否登录条件
				// token:""
			}
		},
		// computed

		computed: {
			...mapState("m_user", ["token"])
		},
		methods: {

		}
	}
</script>

<style>

</style>